package org.jeecg.modules.zcgl.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.apache.ibatis.annotations.Select;
import org.apache.poi.ss.formula.functions.T;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.constant.CommonConstant;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.system.util.JwtUtil;
import org.jeecg.common.system.vo.LoginUser;
import org.jeecg.common.util.oConvertUtils;
import org.jeecg.modules.zcgl.entity.AssetFixed;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.zcgl.entity.AssetFixedLYImport;
import org.jeecg.modules.zcgl.entity.AssetFixedPutImport;
import org.jeecg.modules.zcgl.vo.AssetFixedVo;
import org.jeecg.modules.zcgl.vo.AssetInfoPage;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.transaction.Transactional;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @Description: 固定资产
 * @Author: jeecg-boot
 * @Date:   2021-06-30
 * @Version: V1.0
 */
public interface IAssetFixedService extends IService<AssetFixed> {

    List<AssetFixedVo> getJieXianList();
    void  editAssetFixed(AssetFixed assetFixed);

    void delAssetFixed(String id);

    void delBatchAssetFixed(String ids);

    /**
     * 导出excel
     *
     * @param request
     */
    public ModelAndView exportXls1(HttpServletRequest request, AssetFixed object, Class<T> clazz, String title) ;

    int getTypeCount(String type);
    Result<?>  importExcel(HttpServletRequest request, HttpServletResponse response,Class<AssetFixed> tClass);
    Result<?>  importExcelAsset(HttpServletRequest request, HttpServletResponse response,Class<AssetFixedPutImport> tClass);
    Result<?>  importExcelAssetLY(HttpServletRequest request, HttpServletResponse response,Class<AssetFixedLYImport> tClass);

}
